<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/auth/templates/template.xhtml">
	<ui:define name="pageTitle">Incluir Pagamento em Conta Cliente</ui:define>
	<ui:define name="body">

		<f:view>
			<f:metadata>
				<f:viewParam name="cliente" value="#{clienteRSBean.cliente}" />
			</f:metadata>

			<p:growl id="messages" showDetail="true" autoUpdate="true"
				closable="true" />
			<h:form>
				<h:panelGrid cellspacing="10px" styleClass="center">
					<h:outputText value="Dados do Cliente" styleClass="header3" />
					<h:panelGrid columns="2" cellspacing="10px">
						<h:outputText value="Nome:" />
						<h:outputText value="#{clienteRSBean.cliente.nome}" />
						<h:outputText value="Limite:" />
						<h:outputText value="#{clienteRSBean.cliente.limite}">
							<f:convertNumber currencyCode="BRL" type="currency" />
						</h:outputText>
						<h:outputText value="Saldo Atual:" />
						<h:outputText value="#{clienteRSBean.saldoAtual}">
							<f:convertNumber currencyCode="BRL" type="currency" />
						</h:outputText>
						<p:outputLabel value="Valor Pago:" />
						<p:inputText value="#{clienteRSBean.valorPago}">
							<f:convertNumber minFractionDigits="2" type="number" />
						</p:inputText>
					</h:panelGrid>
					<p:commandButton action="#{clienteRSBean.incluirpagamento()}"
						value="Enviar" icon="ui-icon-check" update="@form" />
				</h:panelGrid>
			</h:form>
		</f:view>
	</ui:define>
</ui:composition>

</html>